/**
 * Created with IntelliJ IDEA.
 * User: aermakov
 * Date: 24.05.13
 * Time: 13:17
 * To change this template use File | Settings | File Templates.
 */

Ext.ns('GrailsCompany.form');

GrailsCompany.form.OrganizationForm = Ext.extend(GrailsCompany.form.CRUDFormPanel, {
    constructor: function (config) {
        config = Ext.apply({
            border: false,
            monitorValid: true,
            defaultType: 'textfield',
            items: [
                {
                    fieldLabel: 'Title',
                    name: 'title',
                    allowBlank: false,
                    width: 150
                },
                {
                    fieldLabel: 'Description',
                    name: 'description',
                    xtype: 'textarea',
                    maxLength: 1000,
                    emptyText: 'No description provided',
                    width: 150
                }
            ]
        }, config);

        GrailsCompany.form.OrganizationForm.superclass.constructor.call(this, config);
    }
});
Ext.reg('orgform', GrailsCompany.form.OrganizationForm);
